<script type="text/javascript">
$(document).ready(function(){
    $("#formSeguimiento").validate({
  rules: {
	  nombrecompania: {
	        required: true
	 },
	 servicio: {
	        required: true
	 },
	 jurisdiccion: {
	        required: true
	 },
	 date: {
	        required: true
	 },
	 responsable: {
	        required: true
	 },
	 provincia: {
		 required: true
	 },
	 conctato: {
		 required: true
	 },
	 telefono1: {	    
	        digits: true,
	        minlength: 10,
	        maxlength: 10
	        
	 },
	 telefono2: {
		    minlength: 10,
	        maxlength: 14
	 },
	 email: {
	        required: true,
	        email: true
	 }
  }
});    
});
 </script>
 <div id="titulo">Crear Servicio Express</div>
 <?php echo form_open('trancrearcompania/savecompanyEx', array('name' => 'formSeguimiento','id'=>'formSeguimiento'));?>
 <input type="hidden" name="idregistro" value=""/>
  
 <table class="tablaform" width="100%" border="0">
 <tr>
 <td><b>Referencia</b></td>
 <td><input type="text" name="nombrecompania" id="nombrecompania" size="50" value="" />
 <?php echo form_error('nombrecompania');?>
 </td>
 </tr>
 
 
<tr>
<td><b>Tipo de Servicio</b></td>
<td>
<select name="servicio" id="servicio" style="width: 200px">
<option value="1">Express</option>
</option>
</select>
</td>
</tr>

<tr>
<td><b>Jurisdiccion</b></td>
<td>
<select name="jurisdiccion" id="jurisdiccion" style="width: 200px">
<option value="">Seleccione una jurisdiccion</option>
<?php
foreach ($jurisdicciones as $jurisdiccion)
{
?>
<option value="<?php echo $jurisdiccion->getIdJurisdiccion(); ?>"><?=$jurisdiccion->getNombreJurisdiccion();?>
</option>
<?php	
}
?>
</select>
</td>
 </tr>
 
 <tr>
 <td><b>Fecha Creacion</b></td>
 <td><input id="date" name="date"><script type="text/javascript">
  $(function()
  {
      $("#date").datepicker({maxDate: new Date()});
  });
</script>
</td>
 </tr>
 <tr>
 <td><b>Responsable<b></td>
 <td>
 <select name="responsable" id="responsable" style="width: 200px">
<option value="">Seleccione un responsable</option>
<?php
foreach ($responsables as $responsables)
{
?>
<option value="<?php echo $responsables->getIdEstatus(); ?>"><?=$responsables->getNombre();?>
</option>
<?php	
}
?>
</select>
 </td>
 </tr>
 <tr>
 <td><b>Provincia</b></td>
 <td> 
 <select name="provincia" id="provincia" style="width: 200px">
 <option value="">Seleccione una provincia</option>
 <?php
foreach ($provincias as $provincia)
{
?>
<option value="<?php echo $provincia->getId(); ?>"><?=$provincia->getDescriccion();?>
</option>
<?php	
}
?>
</select>
 </td>
 </tr>
  <tr>
 <td><b>Conctato</b></td>
 <td><input type="text" name="conctato" id="conctato" value=""/></td>
 </tr>
 <tr>
 <td><b>Celular</b></td>
 <td><input type="text" name="telefono1" id="telefono1" value=""/></td>
 </tr>
 <tr>
 <td><b>Telefono</b></td>
 <td><input type="text" name="telefono2" id="telefono2" value=""></td>
 </tr>
  <tr>
 <td><b>Email</b></td>
 <td><input type="text" name="email" id="email" size="50" value=""/></td>
 </tr>
 <tr>
 <td><input type="submit" value="Crear Servicio" align="center" /></td>
 <td><a href="<?php echo site_url().'/main_tran' ?>"><input type="button" value="Atras" align="center"/></a></td>
 </tr>
 </table>
 </form>
